package com.riteny.oauth.core.tokenstore;

import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.token.TokenStore;

import java.util.Map;

public interface CustomTokenStore extends TokenStore {

    Map<String, Object> readUserInfo(OAuth2AccessToken token, OAuth2Authentication authentication);

}
